package com.dubbo.auth.configuration;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
@Data
@Component
@ConfigurationProperties(prefix = "auth")
public class ShiroConfiguration {

    private String loginUrl;

    private String successUrl;

    private String unauthorizedUrl;

    @Value("#{'${auth.anonUrl}'.split(',')}")
    private List<String> anonList;

    @Value("#{'${auth.authcUrl}'.split(',')}")
    private List<String> authcList;

}
